home *** CD-ROM | disk | FTP | other *** search
/ Freelog 115 / FreelogNo115-MaiJuin2013.iso / Internet / AvantBrowser / asetup.exe / _data / webkit / chrome_100_percent.pak / Unnamed File 000048.txt < prev    next >
Text File  |  2013-04-03  |  597b  |  19 lines

  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4.  
  5. // Custom bindings for the ttsEngine API.
  6.  
  7. var chromeHidden = requireNative('chrome_hidden').GetChromeHidden();
  8.  
  9. chromeHidden.Event.registerArgumentMassager('ttsEngine.onSpeak',
  10.     function(args, dispatch) {
  11.   var text = args[0];
  12.   var options = args[1];
  13.   var requestId = args[2];
  14.   var sendTtsEvent = function(event) {
  15.     chrome.ttsEngine.sendTtsEvent(requestId, event);
  16.   };
  17.   dispatch([text, options, sendTtsEvent]);
  18. });
  19.